Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sts_token_buffer_time parameter to transport options #2216

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eisichenko
Copy link

@eisichenko eisichenko commented Jan 5, 2025

Linked Issue: #2217

During development, I've encountered an issue where Kombu does not currently provide an option to generate an STS token before its expiration time. This can lead to errors such as:

Request HTTP Error HTTP 403 Forbidden (b'{"__type":"com.amazon.coral.service#ExpiredTokenException","message":"The security token included in the request is expired"}')

Such errors occur when the session token expires, which can cause the consumer channel to close when working with Celery.

This PR introduces a new optional parameter sts_token_buffer_time which defaults to 0, preserving the previous behavior. When provided, this attribute allows the STS token to be generated earlier by the specified buffer time seconds (sts_token_buffer_time), helping to prevent ExpiredTokenException errors.

@eisichenko eisichenko force-pushed the feature/sts-token-generate-buffer-time branch 6 times, most recently from 7c01277 to b45c6c8 Compare January 5, 2025 14:47
@eisichenko eisichenko force-pushed the feature/sts-token-generate-buffer-time branch from b45c6c8 to 54ac9db Compare January 5, 2025 15:32
@eisichenko eisichenko changed the title Add sts_token_buffer_time Parameter to Transport Options Add sts_token_buffer_time parameter to transport options Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant